import http from "@/utils/http";

export default {
    getlist:(data:HttpPayload.Product):Promise<Vm.Product[]>=>http<HttpPayload.Product,Vm.Product[]>({url:'product/list',method:'post',data}),
    getItem:(id:number):Promise<Vm.Product>=>http<number,Vm.Product>({url:"product/model/"+id})
}